<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>移通影讯</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${pageContext.request.contextPath}/styles/style.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easySlider1.5.js"></script>
</head>
<body>
	<div class="main">
		<div class="header">
			<div class="block_header">
				<div class="logo">
					<a href="${pageContext.request.contextPath}/jsp/getfilmlist.action"><img
						src="${pageContext.request.contextPath}/images/logo5.jpg"
						width="346" height="131" border="0" alt="logo" /></a>
				</div>
				<div class="menu">
					<ul>
						<li><a
							href="${pageContext.request.contextPath}/jsp/getfilmlist.action"
							class="active">首页</a></li>
						<li><a
							href="${pageContext.request.contextPath}/jsp/getallfilmlist">影视列表</a></li>
						<li><a
							href="${pageContext.request.contextPath}/jsp/aboutus.jsp">关于我们</a></li>
						<s:if test="#session.user!=null">
							<li><a
								href="${pageContext.request.contextPath}/changeuser.action">
									<s:property value="#session.user.us_nickname" />:的账户
							</a></li>
							<li><a
								href="${pageContext.request.contextPath}/loginout.action">登出</a></li>
						</s:if>
						<s:else>
							<li><a
								href="${pageContext.request.contextPath}/jsp/regist.jsp">加入我们</a></li>
							<li><a
								href="${pageContext.request.contextPath}/jsp/login.jsp">登陆</a></li>
						</s:else>
					</ul>
				</div>
				<div class="clr"></div>
			</div>
		</div>
		<div class="slider2">
			<div class="slider2_resize">
				<h2>移通影讯</h2>
			</div>
			<div class="clr"></div>
		</div>
		<div class="clr"></div>
		<div class="body">
			<div class="body_resize">
				<s:iterator value="filmList" var="allfilm">
					<div class="port">
						<s:url action="filim_information" id="film_id">
							<s:param name="film.fi_id" value="#allfilm.fi_id"></s:param>
						</s:url>
						<p>
							<s:a href="%{film_id}">
								<img
									src="${pageContext.request.contextPath}/${allfilm.fi_image} "
									alt="picture" width="133" height="144" />
							</s:a>
						</p>
						<h2>${allfilm.fi_name}</h2>
						<p>${allfilm.fi_jianjie}</p>
						<p>
							<s:a href="%{film_id}">
								<img src="${pageContext.request.contextPath}/images/zoom.gif"
									alt="picture" width="68" height="20" border="0" />
							</s:a>
						</p>
					</div>
				</s:iterator>
				<div class="clr"></div>
				<!-- ======================分页超链接======================================= -->
				<!-- 判断事是否就一页信息 且为第一页 -->
				<c:if test="${(allPage-1)==offsetPage&&(offsetPage==0)}">
					<a href="#">末页</a>
				</c:if>
				<!-- 判断当前是最后一页 -->
				<c:if test="${((allPage-1)==offsetPage)&&(offsetPage!=0)}">
					<a
						href="
				<c:url value="getallfilmlist">
					<c:param name="offsetPage" value="${offsetPage-1}"/>
				</c:url>
		">上一页</a>

				</c:if>
				<!-- 判断事是否>一页信息 且为第一页 -->
				<c:if test="${((allPage-1)!=offsetPage)&&(offsetPage==0)}">
					<a
						href="
				<c:url value="getallfilmlist">
					<c:param name="offsetPage" value="${offsetPage+1}"/>
				</c:url>
		">下一页</a>
				</c:if>
				<!-- 判断事是否不是组后一页信息 且不为第一页 -->
				<c:if test="${((allPage-1)!=offsetPage)&&(offsetPage!=0)}">
					<a
						href="
				<c:url value="getallfilmlist">
					<c:param name="offsetPage" value="${offsetPage-1}"/>
				</c:url>
		">上一页</a>
					<a
						href="
				<c:url value="getallfilmlist">
					<c:param name="offsetPage" value="${offsetPage+1}"/>
				</c:url>
		">下一页</a>
				</c:if>
				<p>当前页码${offsetPage+1} 总页数${allPage}</p>

				<!-- ======================分页超链接结束======================================= -->
			</div>
			<div class="clr"></div>
		</div>
		<div class="FBG">
			<div class="Fbg_resize">
				<div class="Twitter">
					<p>
						<img src="${pageContext.request.contextPath}/images/teacher.jpg"
							alt="picture" width="129" height="96" />
					</p>
					&nbsp;
					<p>
						<strong>指导老师</strong><br />
					</p>
					<p>就是我啦，哈哈哈哈</p>
				</div>
				<div class="con">
					<h2>关于我们</h2>
					<ul>
						<li>移通电影院</li>
						<li>重庆市合川区假日大道 1 号</li>
						<li>咨询电话: + 134 5286 5323</li>
					</ul>
					<ul>
						<li>服务QQ:812918458</li>
						<li>E-mail:fuyao81145676@sina.cn</li>
					</ul>
				</div>
			</div>
			<div class="clr"></div>
		</div>
		<div class="footer">
			<div class="resize">
				<p class="footer_logo">&nbsp;</p>
				<div>
					©2012 重庆邮电大学移通学院<a
						href="${pageContext.request.contextPath}/jsp/aboutus.jsp">关于我们
					</a>
				</div>
			</div>
			<p class="clr"></p>
		</div>
	</div>
</body>
</html>